﻿using LY.Entity;
using LY.Entity.Entities;
using LY.Entity.PageSearch;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace LY.Interface
{
    public interface IModuleService
    {
        /// <summary>
        /// 检索模块列表
        /// </summary>
        /// <param name="search"></param>
        /// <param name="view"></param>
        /// <returns></returns>
        PagedList<S_Module> QueryModuleList(PageView view);

        List<S_Module_EX> QueryNewRoleModuleList();

        List<S_Module_EX> QueryRoleModuleList(int roleid);

        List<S_Module> QueryUserModuleList(int id);


        /// <summary>
        /// 新增 编辑项目信息
        /// </summary>
        /// <param name="inves"></param>
        /// <returns></returns>
        int SaveModule(S_Module module);

        /// <summary>
        /// 删除项目信息
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        int DeleteModule(int id);

        /// <summary>
        /// 检索投资信息
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        S_Module GetModule(int? id);

        /// <summary>
        /// 检索投资信息
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        List<S_Module> GetModuleSub(int? id);

        List<S_Module> GetUpperModuleList(int? id);
    }
}
